package com.bc.web.config;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.bc.web.model.Account;
import com.jfinal.kit.PropKit;

public class R {
	
	public static final String RK_CHANNEL = "BC_CHANNEL";
	public static final String RK_FEE_MODEL = "BC_FEE_MODEL";
	public static final String RK_RISK = "BC_RISK";
	public static final String RK_TS = "BC_TS";
	public static final String RK_MERCH = "BC_MERCH";
	public static final String RK_ORG = "BC_ORG";
	public static final boolean IS_REDIS = PropKit.use("config.properties").getBoolean("isRedis");
	
	public static final String BD_TRADE = "trade";
	public static final String QCodeUrl = "http://www.qcurepay.com/wxpay?sub_mich=";
	
	public static final String wxgj_merchant_no="1497668372";
	public static final String wxgj_appid="wx2ce2eddc9f96be5e";
	public static final String  wxgj_merchant_ser="Katieleewx2ce2eddc9f96be5eKatiel";
	
	public static Map<String, String> hicardMerchantMap;
	static {
		List<Account> accountList = Account.dao.selectHicardAccountNo();
		if(accountList.size() > 0) {
			hicardMerchantMap = new HashMap<>(accountList.size());
			for(Account account : accountList) {
				hicardMerchantMap.put(account.getAccountNo(), account.getAccountName());
			}
		}
		
	}

}
